package com.lin.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Product {
    private Integer pid;
    private String brandName;
    private String companyName;
    private int price;
    private int stock;
    private int discount;

    public Product(String brandName, String companyName) {
        this.brandName = brandName;
        this.companyName = companyName;
    }

    public Product(String brandName, String companyName, int price, int stock, int discount) {
        this.brandName = brandName;
        this.companyName = companyName;
        this.price = price;
        this.stock = stock;
        this.discount = discount;
    }
}
